define(
  'controllers/location', [
    'jQuery',
    'sharezApp',
    'models/locationModel',
  ],
  function($, sharezApp) {
    'use strict';

    var LocationController = function($scope, $filter, $modal, locationModel) {

      locationModel.load(function(locations) {
        console.log(locations);
        $scope.locations = locations;
      }.bind(this));

    };

    sharezApp.controller('locationController', ['$scope', '$filter', '$modal', 'locationModel', LocationController]);

  });




//      $scope.locations = [
//        {'title': 'Google - Search The Web',
//          'conversation': 'Search engines.',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'One Plus One - Cheap and cool!',
//          'conversation': 'Phones for mom',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'Timmi Patterson - Spud is the best surfboard ever made!',
//          'conversation': 'Surfers',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'HTC one - is this good enough?',
//          'conversation': 'Phones for mom',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'ebay - the shopping mall of the future',
//          'conversation': 'Shopping Girls.',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'Bing - Microblat is stupid',
//          'conversation': 'Search engines.',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'iPhone 6 - when and where?',
//          'conversation': 'Phones for mom',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'Real Madrid - Ronaldo has a shit face',
//          'conversation': 'Soccer Guys',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'Nexus S - Fast just got faster with Nexus S.',
//          'conversation': 'Phones for mom',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'Yahoo - Marissa marry me!',
//          'conversation': 'Search engines.',
//          'dateAdded': new Date(),
//          'comments': '5'
//        },
//        {'title': 'Barcelona - will it win the championship this year?',
//          'conversation': 'Soccer guys',
//          'dateAdded': new Date(),
//          'comments': '5'
//        }
//      ];